<template>
    <div>
        <div style="min-height: 60px;" id="head">
            <Header></Header>
        </div>
        <div>
            <div id="main">
                <div v-loading="$store.state.router_loading" element-loading-spinner="#" style="min-height: 80vh">
                    <router-view></router-view>
                </div>
                <div id="loading" v-if="$store.state.router_loading"><i class="el-icon-loading"></i></div>
            </div>
        </div>
    </div>
</template>

<script>
    import Header from "@/views/common/Header";
    export default {
        name: "Home",
        components:{Header}
    }
</script>

<style scoped>
    #main{
        padding: 20px;
        max-width: 960px;
        margin: 0 auto;
    }
    #loading{
        position: fixed;
        top: 47%;
        left: 49%;
        font-size: 30px;
        color: #409EFF;
        Z-index:10000;
    }
    @media (max-width: 600px) {
        #main{
            padding: 20px 0
        }
        #loading{
            left: 47%;
        }
    }
</style>
